package C7_5_CompositeReplaceImplicitTree.before;

import C7_5_CompositeReplaceImplicitTree.TagNode;

/**
 * @author xufy
 * @version 1.0
 **/
public class TagTests {
    private static final String SAMPLE_PRICE="8.95";
    public void testSimpleTagWithOneAttributeAndValue(){
        TagNode priceTag=new TagNode("price");
        priceTag.addAttribute("currency","USD");
        priceTag.addValue(SAMPLE_PRICE);
        String expected=
                "<price currency="+
                        "'"+
                        "USD"+
                        "'>"+
                        SAMPLE_PRICE+
                        "</price>";
    }
}
